package com.wjf.shortlink.shortlink.common.constant;

// redis Key 常量类
public class RedisKeyConstant {

    //短链接跳转前缀 Key
    public static final String GOTO_SHORT_LINK_KEY = "short-link:goto:%s";
    //短链接空置跳转前缀 Key
    public static final String GOTO_IS_NULL_SHORT_LINK_KEY = "short-link:is-null:goto:%s";
    //短链接跳转锁前缀 Key
    public static final String LOCK_GOTO_SHORT_LINK_KEY = "short-link:lock:goto:%s";
    //短链接监控消息保存队列 Topic
    public static final String SHORT_LINK_STATS_STREAM_TOPIC_KEY = "short-link:stats-stream";
    //短链接修改分组ID Key
    public static final String LOCK_GID_UPDATE_KEY = "short-link:lock:update-gid:%s";
    // 短链接延迟队列消费统计 Key
    public static final String DELAY_QUEUE_STATS_KEY = "short-link:delay-queue:stats";
    //短链接统计判断是否新用户标识
    public static final String SHORT_LINK_STATS_UV_KEY = "short-link:stats-uv:";
    //短链接监控消息保存队列 Group 缓存标识
    public static final String SHORT_LINK_STATS_STREAM_GROUP_KEY = "short-link:stats-stream:only-group";
    //短链接统计判断是否新IP 缓存标识
    public static final String SHORT_LINK_STATS_UIP_KEY = "short-link:stats-uip:";
    //创建短链接锁
    public static final String SHORT_LINK_CREATE_LOCK_KEY = "short-link:lock:create";
}
